//
//  HuoDongViewCell.m
//  lover-go-ios-beta
//
//  Created by liudonghuan on 14-8-29.
//  Copyright (c) 2014年 liudonghuan. All rights reserved.
//

#import "HuoDongViewCell.h"

@implementation HuoDongViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = LGCOLOR_gray;
        _headimage = [[EMAsyncImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 150)];
        _title = [[UILabel alloc]initWithFrame:CGRectMake(0, 150, SCREEN_WIDTH, 25)];
        _title.font = [UIFont fontWithName:@"Helvetica" size:15];
        _title.backgroundColor = [UIColor whiteColor];
        [_title setTextColor:[UIColor colorWithRed:102/255.0 green:221/255.0 blue:225/255.0 alpha:1]];
        _time = [[UILabel alloc]initWithFrame:CGRectMake(0, 170, SCREEN_WIDTH, 25)];
        _time.font = [UIFont fontWithName:@"Helvetica" size:13];
        _time.backgroundColor = [UIColor whiteColor];
        _numtitle = [[UILabel alloc]initWithFrame:CGRectMake(252, 105, 80, 20)];
        _numtitle.font = [UIFont fontWithName:@"Helvetica" size:11];
        _num = [[UILabel alloc]initWithFrame:CGRectMake(250, 118, 50, 20)];
        _num.font = [UIFont fontWithName:@"Helvetica" size:13];
        _num.textAlignment = UITextAlignmentCenter;
        _numtitle.textColor = [UIColor whiteColor];
        _num.textColor = [UIColor whiteColor];

        
        _yuan = [[UIButton alloc]initWithFrame:CGRectMake(250, 95, 50, 50)];
        UIImage *collectbg = [UIImage imageNamed:@"ico_collection_bg.png"];
        UIImage *collectbgselect = [UIImage imageNamed:@"ico_collection_bg_select.png"];
        [_yuan setBackgroundImage:collectbg forState:UIControlStateNormal];
        [_yuan setBackgroundImage:collectbgselect forState:UIControlStateSelected];
       
        [self addSubview:_headimage];
        [self addSubview:_title];
        [self addSubview:_time];

         [self addSubview:_yuan];
        [self addSubview:_numtitle];
        [self addSubview:_num];
 
        
        
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
